package me.zhengjie.sqlservice.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import me.zhengjie.mapper.WcsLineBodyWaitOutboundMapper;
import me.zhengjie.pojo.entity.WcsLineBodyWaitOutbound;
import me.zhengjie.sqlservice.WcsLineBodyWaitOutboundService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class WcsLineBodyWaitOutboundServiceImpl extends ServiceImpl<WcsLineBodyWaitOutboundMapper, WcsLineBodyWaitOutbound> implements WcsLineBodyWaitOutboundService {
    private final WcsLineBodyWaitOutboundMapper wcsLineBodyWaitOutboundMapper;

    @Override
    public boolean insertWaitOutbound(WcsLineBodyWaitOutbound wcsLineBodyWaitOutbound) {
        return wcsLineBodyWaitOutboundMapper.insert(wcsLineBodyWaitOutbound) >0;
    }

    @Override
    public List<WcsLineBodyWaitOutbound> selectList() {
        return wcsLineBodyWaitOutboundMapper.selectList(null);
    }

    @Override
    public boolean removeId(Integer id) {
        return wcsLineBodyWaitOutboundMapper.deleteById(id) >0;
    }


}
